<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style>
        body{
            padding: 0;
            margin: 0;
        }
        *{
            box-sizing: border-box;
        }
        .box{
            width: 1200px;height: auto;
            display: flex;
            flex-wrap: wrap;
            margin: auto;
        }
        .list{
            width: 20%;height: 300px;
            padding: 10px;
        }
        .img{
            width: 100%;height: 80%;
            overflow: hidden;
            position: relative;
        }
        img{
            width: 100%;position: absolute;
            left: 0;top: 0;bottom: 0;right: 0;
            margin:auto;
        }
        .title{
            width: 100%;height: 20%;
            display: flex;
            justify-content: space-around;
            align-items: baseline;
        }

    </style>
</head>
<body>
    <div class="box">
        {%for item in datas%}
        <div class="list">
            <div class="img">
               <img src="static/img/{{datas[i].img}}" alt="">
            </div>
            <div class="title">
                <h3>{{data[i].name}}</h3>
                <a href="/tuijian/{{i}}">推荐电影</a>
            </div>
        </div>
        {%endfor%}
    </div>
</body>
</html>